package com.bytz.modules.cms.product.model;

import com.bytz.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class ProductModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "商品编号")
    private String productNumber;

    @ApiModelProperty(value = "物料描述")
    private String materialDesc;

    @ApiModelProperty(value = "产品线ID")
    private String productLineId;

    @ApiModelProperty(value = "产品线编码：SV/IV")
    private String productLineCode;

    @ApiModelProperty(value = "产品线名称")
    private String productLineName;

    @ApiModelProperty(value = "优惠分类id")
    private String discountCategoryId;

    @ApiModelProperty(value = "优惠分类名字")
    private String discountCategoryName;

    @ApiModelProperty(value = "一级分类编号")
    private String hierarchyNumber;

    @ApiModelProperty(value = "产地")
    private String plant;

    @ApiModelProperty(value = "替换商品编号")
    private String replaceProductNumber;

    @ApiModelProperty(value = "状态（0：未上架，1：上架）")
    @Dict(dicCode = "product_status")
    private String status;

    @ApiModelProperty(value = "是否属于EC产品（0否；1是）")
    private String isEc;

    @ApiModelProperty(value = "删除状态")
    private Integer delFlag;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新人姓名")
    private String updateByName;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;


    @ApiModelProperty(value = "经销商价格")
    private BigDecimal calculatePrice;

    @ApiModelProperty(value = "预付比例")
    private BigDecimal prepayRatio;

    @ApiModelProperty(value = "产品标准交期")
    private Integer deliveryDate;

    @ApiModelProperty(value = "最大订货数量")
    private Integer maxOrderQuantity;
}